package com.lawyer.entity;

import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 订单
 *
 */
@Entity
@Table
public class OrderInfo extends AbstractAuditingEntity {

	@Id
	@ApiModelProperty(name = "订单号")
	private String id;

	private String prepayId;
	@ApiModelProperty(name = "用户id")
	private String userId;

	@ApiModelProperty(name = "订单金额")
	private Integer total;

	@ApiModelProperty(name = "创建订单方式",example ="jsapi或native")
	private String urlType;

	@ApiModelProperty(name = "isPay= true已支付，isPay=false未支付")
	private Boolean isPay;
	
	@ApiModelProperty(value = "套餐id")
	private Integer mealId;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPrepayId() {
		return prepayId;
	}

	public void setPrepayId(String prepayId) {
		this.prepayId = prepayId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	public Boolean getIsPay() {
		return isPay;
	}

	public void setIsPay(Boolean isPay) {
		this.isPay = isPay;
	}
	

	public String getUrlType() {
		return urlType;
	}

	public void setUrlType(String urlType) {
		this.urlType = urlType;
	}

	public Integer getMealId() {
		return mealId;
	}

	public void setMealId(Integer mealId) {
		this.mealId = mealId;
	}
	
	

}
